<?php

	$browser="default";
	$firefox=0;
	$ie7=0;
	$ie6=0;
	
	if (preg_match('/MSIE 6.0/', $_SERVER['HTTP_USER_AGENT']))
	{
		$browser="ie6";
		$ie6=1;
	}
	if (preg_match('/MSIE 7.0/', $_SERVER['HTTP_USER_AGENT']))
	{
		$browser="ie7";
		$ie7=1;
	}
	if (preg_match('/Firefox/', $_SERVER['HTTP_USER_AGENT']))
	{
		$browser="firefox";
		$firefox=1;
	}

?>